#include"String.h"

void test1()
{
	MyString s;
	s.push_back('a');
	s.push_back('b');
	s.push_back('c');
	s.push_back('d');
	s.push_back('e');
	s.push_back('f');
	s.push_back('g');

	/*MyString s1;
	cin >> s1;
	cout << s1 << endl;*/

	MyString s2;
	s2.insert(s2.size(), "wwwwww");
	cout << s2 << endl;

}

void test2()
{
	MyString s1("qqqxxx");
	s1.erase(2);
	cout << s1 << endl;

}

void test3()
{
	MyString s1("qqqxxx hell word");
	size_t	pos = s1.find("word");
	MyString tmp = s1.substr(pos);
	cout << tmp;
	/*cout << s1[pos];*/
}

void test4()
{
	MyString s1("begin:");
	s1 += "xxxxxxx";
	cout << s1;
}

void test5()
{
	MyString s1("abcd");
	MyString s2("bbcd");
	cout << (s1 > s2) << endl;

}

void test6()
{
	MyString s1("wwwwww");
	MyString s2("xxxxxx");

	s2 = s1;

	cout << s2 << endl;

}

int main()
{
	//test1();
	//test2();
	//test3();
	//test4();
	test6();
	return 0;
}